﻿(function () {
    'use strict';
    var controllerId = 'testController';

    angular.module('app').controller(controllerId, function ($scope, common) {
        var db = common.dataContext;
 
        $scope.loadData = function () {
            console.log(common);
            db.getPeople();
        };

        $scope.addItem = function () {
            db.addPerson();
        };

    });
})();
